﻿<Window x:Name="Root" x:Class="PreviewControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Height="267.2" Width="422" ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="Manual" AllowsTransparency="True" WindowStyle="None" Topmost="True" Background="#00808080">
    <Window.Effect>
        <DropShadowEffect Opacity="0.75" ShadowDepth="0"/>
    </Window.Effect>
    <Grid x:Name="MyGrid">
        <Viewport3D x:Name="ItemContainer" RenderTransformOrigin="0.5,0.5" OpacityMask="Red" Canvas.Left="10" Canvas.Top="10" HorizontalAlignment="Center" Width="402" Height="247" VerticalAlignment="Center">
            <Viewport3D.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="2" ScaleY="2"/>
                    <SkewTransform/>
                    <RotateTransform Angle="5"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Viewport3D.RenderTransform>
            <Viewport3D.Camera>
                <PerspectiveCamera x:Name="Camera" FieldOfView="90" FarPlaneDistance="9000" LookDirection="0,0,-32.1895141649746" NearPlaneDistance="0.1" Position="4.9737991503207E-14,0,32.1895141649746" UpDirection="0,1,0"/>
            </Viewport3D.Camera>
            <ModelVisual3D x:Name="ModelContainer">
                <ModelVisual3D.Content>
                    <GeometryModel3D x:Name="Model" d:Bounds="-13.3333333333333,-10,0,26.6666666666667,20,0">
                        <GeometryModel3D.Transform>
                            <Transform3DGroup>
                                <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                <ScaleTransform3D ScaleZ="1" ScaleY="1" ScaleX="1"/>
                                <RotateTransform3D>
                                    <RotateTransform3D.Rotation>
                                        <AxisAngleRotation3D Axis="0,1,0" Angle="0"/>
                                    </RotateTransform3D.Rotation>
                                </RotateTransform3D>
                                <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                            </Transform3DGroup>
                        </GeometryModel3D.Transform>
                        <GeometryModel3D.Material>
                            <DiffuseMaterial>
                                <DiffuseMaterial.Brush>
                                    <ImageBrush x:Name="Src" Stretch="Uniform"/>
                                </DiffuseMaterial.Brush>
                            </DiffuseMaterial>
                        </GeometryModel3D.Material>
                        <GeometryModel3D.Geometry>
                            <MeshGeometry3D 
							Normals="0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1" 
Positions="-13.333333,-10,0 -10.37037,-10,0 -7.4074074,-10,0 -4.4444444,-10,0 -1.4814815,-10,0 1.4814815,-10,0 4.4444444,-10,0 7.4074074,-10,0 10.37037,-10,0 13.333333,-10,0 -13.333333,-7.7777778,0 -10.37037,-7.7777778,0 -7.4074074,-7.7777778,0
-4.4444444,-7.7777778,0 -1.4814815,-7.7777778,0 1.4814815,-7.7777778,0 4.4444444,-7.7777778,0 7.4074074,-7.7777778,0 10.37037,-7.7777778,0 13.333333,-7.7777778,0 -13.333333,-5.5555556,0 -10.37037,-5.5555556,0 -7.4074074,-5.5555556,0 -4.4444444,-5.5555556,0 -1.4814815,-5.5555556,0 1.4814815,-5.5555556,0
4.4444444,-5.5555556,0 7.4074074,-5.5555556,0 10.37037,-5.5555556,0 13.333333,-5.5555556,0 -13.333333,-3.3333333,0 -10.37037,-3.3333333,0 -7.4074074,-3.3333333,0 -4.4444444,-3.3333333,0 -1.4814815,-3.3333333,0 1.4814815,-3.3333333,0 4.4444444,-3.3333333,0 7.4074074,-3.3333333,0 10.37037,-3.3333333,0
13.333333,-3.3333333,0 -13.333333,-1.1111111,0 -10.37037,-1.1111111,0 -7.4074074,-1.1111111,0 -4.4444444,-1.1111111,0 -1.4814815,-1.1111111,0 1.4814815,-1.1111111,0 4.4444444,-1.1111111,0 7.4074074,-1.1111111,0 10.37037,-1.1111111,0 13.333333,-1.1111111,0 -13.333333,1.1111111,0 -10.37037,1.1111111,0
-7.4074074,1.1111111,0 -4.4444444,1.1111111,0 -1.4814815,1.1111111,0 1.4814815,1.1111111,0 4.4444444,1.1111111,0 7.4074074,1.1111111,0 10.37037,1.1111111,0 13.333333,1.1111111,0 -13.333333,3.3333333,0 -10.37037,3.3333333,0 -7.4074074,3.3333333,0 -4.4444444,3.3333333,0 -1.4814815,3.3333333,0
1.4814815,3.3333333,0 4.4444444,3.3333333,0 7.4074074,3.3333333,0 10.37037,3.3333333,0 13.333333,3.3333333,0 -13.333333,5.5555556,0 -10.37037,5.5555556,0 -7.4074074,5.5555556,0 -4.4444444,5.5555556,0 -1.4814815,5.5555556,0 1.4814815,5.5555556,0 4.4444444,5.5555556,0 7.4074074,5.5555556,0
10.37037,5.5555556,0 13.333333,5.5555556,0 -13.333333,7.7777778,0 -10.37037,7.7777778,0 -7.4074074,7.7777778,0 -4.4444444,7.7777778,0 -1.4814815,7.7777778,0 1.4814815,7.7777778,0 4.4444444,7.7777778,0 7.4074074,7.7777778,0 10.37037,7.7777778,0 13.333333,7.7777778,0 -13.333333,10,0
-10.37037,10,0 -7.4074074,10,0 -4.4444444,10,0 -1.4814815,10,0 1.4814815,10,0 4.4444444,10,0 7.4074074,10,0 10.37037,10,0 13.333333,10,0" TextureCoordinates="0,768 113.77778,768 227.55556,768 341.33333,768 455.11111,768 568.88889,768 682.66667,768 796.44444,768 910.22222,768 1024,768 0,682.66667 113.77778,682.66667 227.55556,682.66667 341.33333,682.66667 455.11111,682.66667 568.88889,682.66667 682.66667,682.66667 796.44444,682.66667 910.22222,682.66667 1024,682.66667 0,597.33333 113.77778,597.33333 227.55556,597.33333
341.33333,597.33333 455.11111,597.33333 568.88889,597.33333 682.66667,597.33333 796.44444,597.33333 910.22222,597.33333 1024,597.33333 0,512 113.77778,512 227.55556,512 341.33333,512 455.11111,512 568.88889,512 682.66667,512 796.44444,512 910.22222,512 1024,512 0,426.66667 113.77778,426.66667 227.55556,426.66667 341.33333,426.66667 455.11111,426.66667 568.88889,426.66667
682.66667,426.66667 796.44444,426.66667 910.22222,426.66667 1024,426.66667 0,341.33333 113.77778,341.33333 227.55556,341.33333 341.33333,341.33333 455.11111,341.33333 568.88889,341.33333 682.66667,341.33333 796.44444,341.33333 910.22222,341.33333 1024,341.33333 0,256 113.77778,256 227.55556,256 341.33333,256 455.11111,256 568.88889,256 682.66667,256 796.44444,256 910.22222,256
1024,256 0,170.66667 113.77778,170.66667 227.55556,170.66667 341.33333,170.66667 455.11111,170.66667 568.88889,170.66667 682.66667,170.66667 796.44444,170.66667 910.22222,170.66667 1024,170.66667 0,85.333333 113.77778,85.333333 227.55556,85.333333 341.33333,85.333333 455.11111,85.333333 568.88889,85.333333 682.66667,85.333333 796.44444,85.333333 910.22222,85.333333 1024,85.333333 0,0 113.77778,0
227.55556,0 341.33333,0 455.11111,0 568.88889,0 682.66667,0 796.44444,0 910.22222,0 1024,0" 
TriangleIndices="0 1 10 1 11 10 1 2 11 2 12 11 2 3 12 3 13 12 3 4 13 4 14 13 4 5 14 5 15 14 5 6 15 6 16 15 6 7 16 7 17 16 7 8 17 8 18 17 8 9 18 9 19 18 10 11 20 11 21 20 11 12 21 12 22 21 12 13 22 13 23 22 13 14 23 14 24 23 14 15 24 15 25 24 15 16 25 16 26 25 16 17 26 17 27 26 17 18 27 18 28 27 18 19 28 19 29 28 20 21 30 21 31 30 21 22 31 22 32 31 22 23 32 23 33 32 23 24 33 24 34 33 24 25 34 25 35 34 25 26 35 26 36 35 26 27 36 27 37 36 27 28 37 28 38 37 28 29 38 29 39 38 30 31 40 31 41 40 31 32 41 32 42 41 32 33 42 33 43 42 33 34 43 34 44 43 34 35 44 35 45 44 35 36 45 36 46 45 36 37 46 37 47 46 37 38 47 38 48 47 38 39 48 39 49 48 40 41 50 41 51 50 41 42 51 42 52 51 42 43 52 43 53 52 43 44 53 44 54 53 44 45 54 45 55 54 45 46 55 46 56 55 46 47 56 47 57 56 47 48 57 48 58 57 48 49 58 49 59 58 50 51 60 51 61 60 51 52 61 52 62 61 52 53 62 53 63 62 53 54 63 54 64 63 54 55 64 55 65 64 55 56 65 56 66 65 56 57 66 57 67 66 57 58 67 58 68 67 58 59 68 59 69 68 60 61 70 61 71 70 61 62 71 62 72 71 62 63 72 63 73 72 63 64 73 64 74 73 64 65 74 65 75 74 65 66 75 66 76 75 66 67 76 67 77 76 67 68 77 68 78 77 68 69 78 69 79 78 70 71 80 71 81 80 71 72 81 72 82 81 72 73 82 73 83 82 73 74 83 74 84 83 74 75 84 75 85 84 75 76 85 76 86 85 76 77 86 77 87 86 77 78 87 78 88 87 78 79 88 79 89 88 80 81 90 81 91 90 81 82 91 82 92 91 82 83 92 83 93 92 83 84 93 84 94 93 84 85 94 85 95 94 85 86 95 86 96 95 86 87 96 87 97 96 87 88 97 88 98 97 88 89 98 89 99 98"/>
                        </GeometryModel3D.Geometry>
                    </GeometryModel3D>
                </ModelVisual3D.Content>
            </ModelVisual3D>
            <ModelVisual3D x:Name="AmbientContainer">
                <ModelVisual3D.Content>
                    <AmbientLight x:Name="Ambient" Color="Gray"/>
                </ModelVisual3D.Content>
            </ModelVisual3D>
            <ModelVisual3D x:Name="DirectionalContainer">
                <ModelVisual3D.Content>
                    <DirectionalLight x:Name="Directional" Color="#FF7F7F7F" Direction="0,0,-1">
                        <DirectionalLight.Transform>
                            <TranslateTransform3D OffsetX="0" OffsetY="0" OffsetZ="3"/>
                        </DirectionalLight.Transform>
                    </DirectionalLight>
                </ModelVisual3D.Content>
            </ModelVisual3D>
        </Viewport3D>
    </Grid>

</Window>
